package com.cyj.dream.admin.model.system;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description: 系统角色和权限关联关系表
 * @BelongsProject: dream-DreamChardonnay
 * @BelongsPackage: com.dream.DreamChardonnay.model.system
 * @Author: ChenYongJia
 * @CreateTime: 2021-04-15 12:24
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@TableName("dream_sys_role_permission")
@ApiModel(value = "系统角色和权限关联关系表", description = "dream_sys_role_permission 系统角色和权限关联关系表")
public class SysRolePermission implements Serializable {

    @ApiModelProperty(value = "角色id",example = "1")
    private Long sysRoleId;

    @ApiModelProperty(value = "模块id",example = "1")
    private Long sysPermissionId;

    @Override
    public String toString() {
        return "SysRolePermission{" +
                "sysRoleId=" + sysRoleId +
                ", sysPermissionId=" + sysPermissionId +
                '}';
    }

}
